<?php template('header'); ?>

	<div id="content">
	<?php
	if ( MOD == 'search' ) {
		echo "<p><h3 style=\"border-bottom:1px solid #ebebeb\">搜索“<span style='color:#f60'>{$keyword}</span>”共找到 {$count} 条结果</h3></p>";
	}
	?>

	<?php if ( have_post() ) : ?>
		<?php while ( fetch_post() ) : ?>
		<div class="post">
			<h2><a href="<?php post('url')?>" rel="bookmark" title="<?php post('title')?>"><?php post('title')?></a></h2>
			<div class="post_meta">
					<?php post('posttime')?> by <?php post('username')?> | <?php post('category')?> , 
					<a href="<?php post('url')?>#comments"><?php post('comments')?> 条评论</a> , <a href="<?php post('url')?>"><?php post('views')?> 次阅读</a>
			</div>
			<div class="post_content"><?php post('excerpt'); ?></div>
		</div>
		<?php endwhile; ?>
	<?php else : ?>
		<h1>Not Found</h1>
		<p>抱歉，没有符合条件的文章！</p>
	<?php endif; ?>

	<?php echo showpage() ?>

	</div>
	
<?php template('sidebar'); ?>
<?php template('footer'); ?>